﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;

namespace testing_thing
{
   public class program
    {
        static void Main(string[] arg) 
        {
            IWorldLoader loader = new FileWorldLoader();
            Location start = loader.Load();
            Player player = new Player(new string[] { "awesome", "me" });

            player.InLocation = start;

            string input;
            CommandProcessor cp = new CommandProcessor();
            while (true)
            {
                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.Write("Command> ");

                input = Console.ReadLine();
                if (input.ToLower() == "quit")
                    Environment.Exit(0);
                
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("\n" + cp.Run(player, input));
            }
        }
    }
}
